import request from '@/utils/request'
// 查询推送配置分页信息
export const gettablelistapi = params => request.get('sst-microservice-biz/dt/push/global/conf/page', { params })
// 新增
export const postaddpeizhiapi = data => request.post('sst-microservice-biz/dt/push/global/conf/add', data)
// 修改
export const postupdatepeizhiapi = data => request.post('sst-microservice-biz/dt/push/global/conf/update', data)
// 删除
export const postdelpeizhiapi = dada => request.post(`sst-microservice-biz/dt/push/global/conf/delete?id=${dada.id}`)
// 启用停用
export const poststoporopenapi = data => request.post(`sst-microservice-biz/dt/push/global/conf/enabled?id=${data.id}&isEnabled=${data.isEnabled}`)
// 激活与否
export const postjihuoapi=data=>request.post(`core/data/push/config/global/activate?pushId=${data.pushId}`)